import xlrd
import os
import copy
def read_excel(filedir):
    # 打开excel文件读取数据
    data = xlrd.open_workbook(filedir)
    # 获取book中所有工作表的名称
    sheet_names = data.sheet_names()
    for sheet_name in sheet_names:
        # 根据工作表的名称获取工作表的内容
        table = data.sheet_by_name(sheet_name)
        # 工作表的行数
        nrows = table.nrows
        # 工作表的列数
        # ncols = table.ncols
        for nrow in range(nrows):
            row = table.row_values(nrow)
            print(row)
            print(type(row[0]))
            if len(row) == 2:
                pass

# read_excel('E:\pythonGit\qiannv\优化中任务导出共350条数据第页2.xlsx')
# a = '/home/root1/project/media/upload_xls/a.txt'
# b = a.split('/')
# b.remove(b[-1])
# c = '/'.join(b)
# print(c+'/')
# li = ['','','','']
# def remove_none(li):
#     lia = copy.copy(li)
#     while True:
#         try:
#             a = lia[-1]
#             if not a:
#                 lia.pop(-1)
#             else:
#                 return lia
#         except:
#             return li
# print(remove_none(li))
li = ['a','b','c','d','g','f','e']
print('❤'.join(li[:6]))
b = 0
while True:
    b += 1
    a = 0
    print('程子涵')
    while True:
        a+=1
        print('夏语瞳')
        if a == 3:
            break
    if b == 10:
        break

